<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge，chrome=1">

    <title>修改头像</title>

    <link rel="stylesheet" href="/static/css-lib/bootstrap.min.css" />

    <style>
        .user-avatar {
            width: 200px;
        }
    </style>
</head>
<body>
    <!-- 头部区域 -->
    <nav class="navbar navbar-default navbar-fixed-top" role="navigation">
        <div class="container-fluid">
            <div class="navbar-header">
                <a class="navbar-brand" href="#">头像修改</a>
            </div>
            <div style="position: absolute;top: 10px;right: 30px;">
                <button id="alter-btn" type="button" class="btn btn-primary">修改</button>
            </div>
        </div>
    </nav>

    <!-- 内容区域 -->
    <div class="container-fluid" style="margin-top: 55px;">
        <div class="row">
            <div class="col-xs-12 col-sm-12 col-md-6 col-lg-6">
                <div class="panel panel-default">
                    <div class="panel-heading">
                        <h3 class="panel-title">原头像</h3>
                    </div>
                    <div class="panel-body">
                        <img id="old-image" src="" alt="原头像" class="user-avatar" />
                    </div>
                </div>
            </div>
            <div class="col-xs-12 col-sm-12 col-md-6 col-lg-6">
                <div class="panel panel-default">
                    <div class="panel-heading">
                        <h3 class="panel-title">新头像</h3>
                    </div>
                    <div class="panel-body">
                        <div id="img-box">
                            <a href="#">
                                <img src="/static/images/add-image(200×200).png" id="add-img" alt="添加图片" style="width: 100px;" />
                            </a>
                        </div>
                    </div>
                    <div id="progress-box" class="panel-footer hidden">
                        <span>上传进度</span>&nbsp;&nbsp;<span id="progress-text"></span>
                        <div class="progress progress-striped active">
                            <div id="progress-img" class="progress-bar progress-bar-success"></div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <!-- 错误提示框 -->
    <div id="error-box" class="modal fade" tabindex="-1" role="dialog" data-backdrop="false">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal">&times;</button>
                    <h4 class="modal-title">错误</h4>
                </div>
                <div id="error-content" class="modal-body"></div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                </div>
            </div>
        </div>
    </div>

    <script src="/static/js-lib/jquery-3.4.1.min.js"></script>
    <script src="/static/js-cus/parents/Console-Frame-UpdateAvatar.js"></script>
</body>
</html>